/**
 * <p>Title: ShapeFactory.java>
 * <p>Description: 
 * <p>Company: YSS
 * @author yangsongsong
 * @date 2019年1月1日
 */
package com.yss.factory;

public class ShapeFactory extends AbstractFactory {
	@Override
	public Color getColor(String color) {
		return null;
	}

	@Override
	public Shape getShape(String shape) {
		if (shape.equalsIgnoreCase("CIRCLE")) {
			return new Circle();
		} else if (shape.equalsIgnoreCase("RECTANGLE")) {
			return new Rectangle();
		}
		return null;
	}
}
